<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>hello world</title>
		<script src="js/jquery-2.1.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			function helloworld(){
					alert("hello world!")
				}
		   		document.addEventListener('plusready', function(){
		   			//alert("welcome to Html5plus!");
		   			$("#text").text("改的就是你");
		   		});
		</script>
		<script type="text/javascript">
			// 扩展API加载完毕后调用onPlusReady回调函数 
			document.addEventListener( "plusready", onPlusReady, false );
			// 扩展API加载完毕，现在可以正常调用扩展API
			function onPlusReady() {
				//alert(22);
			}
			//邮件
			function mailTest(){
				var msg = plus.messaging.createMessage(plus.messaging.TYPE_EMAIL);
				msg.to = ['test@163.com', 'test@173.com'];
				msg.cc = ['test@163.com', 'test@173.com'];
				msg.bcc = ['test@163.com', 'test@173.com'];
				msg.subject = '测试邮件';
				msg.body = 'This is Pandora example test message';
				plus.messaging.sendMessage( msg, function () {
					alert( "Send success!" );
				}, function () {
					alert( "Send failed!" );
				} );
			}
		</script>
	</head>

	<body>
		This is a show “helloworld” default page,your can click this button
		<button onclick="helloworld()">click me!</button> to show a "hello world" message!<br /><br />
		<button type="button" onclick="mailTest()">Send Mail</button>
		<a href="gallery.html">点击我链接到那里去</a><br /><br />
		<div id="text">
			请改变我
		</div>
	</body>

</html>